package com.atguigu.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface DictService extends IService<Dict> {
    //根据 id來查詢來查詢子查詢列表
    List<Dict> findChildData(Long id);

    void exportData(HttpServletResponse response);

    public void importDictData(MultipartFile file) ;
    //根据上级编码与值获取数据字典名称
    String getNameByParentDictCodeAndValue(String parentDictCode, String value);

    List<Dict> findByDictCode(String dictCode);
}
